package net.towee.client.event.core;

import net.towee.model.account.ContactsGroup;

import com.google.gwt.event.shared.GwtEvent;

public class ContactsGroupDeletedEvent extends GwtEvent<ContactsGroupDeletedHandler> {
	public static Type<ContactsGroupDeletedHandler> TYPE = new Type<ContactsGroupDeletedHandler>();
	private final ContactsGroup group;
	
	public ContactsGroupDeletedEvent(ContactsGroup g) {
		this.group = g;
	}

	@Override
	public Type<ContactsGroupDeletedHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(ContactsGroupDeletedHandler handler) {
		handler.onContactsGroupDeleted(group);
	}

}
